.class Lorg/zeam/Workspace$OvershootInterpolator;
.super Ljava/lang/Object;
.source "Workspace.java"

# interfaces
.implements Landroid/view/animation/Interpolator;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lorg/zeam/Workspace;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "OvershootInterpolator"
.end annotation


# instance fields
.field private mTension:F


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 175
    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lorg/zeam/Workspace$OvershootInterpolator;-><init>(Z)V

    .line 176
    return-void
.end method

.method public constructor <init>(Z)V
    .locals 1
    .parameter "enable"

    .prologue
    .line 178
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 180
    if-eqz p1, :cond_0

    .line 181
    const/high16 v0, 0x3fc0

    iput v0, p0, Lorg/zeam/Workspace$OvershootInterpolator;->mTension:F

    .line 185
    :goto_0
    return-void

    .line 183
    :cond_0
    const/4 v0, 0x0

    iput v0, p0, Lorg/zeam/Workspace$OvershootInterpolator;->mTension:F

    goto :goto_0
.end method


# virtual methods
.method public getInterpolation(F)F
    .locals 4
    .parameter "t"

    .prologue
    const/high16 v3, 0x3f80

    .line 191
    sub-float/2addr p1, v3

    .line 192
    mul-float v0, p1, p1

    iget v1, p0, Lorg/zeam/Workspace$OvershootInterpolator;->mTension:F

    add-float/2addr v1, v3

    mul-float/2addr v1, p1

    iget v2, p0, Lorg/zeam/Workspace$OvershootInterpolator;->mTension:F

    add-float/2addr v1, v2

    mul-float/2addr v0, v1

    add-float/2addr v0, v3

    return v0
.end method
